import {getTongzhi,getBanner,getMatchOverList} from '@/api/index/index.js'
export default {
  namespaced: true,
  state: () => ({
	
	
  }),

  mutations: {
    
  },

  // 模块的 mutations 方法
  actions: {
	  //获取顶部通知
	getTongzhiList({commit},payload){
		getTongzhi().then(res=>{
			if(payload.success){
				payload.success(res)
			}
		})
	},
	//获取banner图
	getBannerList({commit},payload){
		getBanner().then(res=>{
			if(payload.success){
				payload.success(res)
			}
		})
	},
	//获取已经结束赛事的列表
getMatchOverListAction({commit},payload){
		getMatchOverList(payload.data).then(res=>{
			if(payload.success){
				payload.success(res)
			}
		})
	},
		
	
		
		
  },

  // 模块的 getters 属性
  getters: {
	
  }
}